<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

//Route::get('/admin', [\App\Http\Controllers\admin\defaults\IndexController::class,'index']);
Route::match(['post','get'],'/cs/add', [\App\Http\Controllers\admin\defaults\TestController::class,'add']);
Route::match(['post','get'],'/cs1', [\App\Http\Controllers\admin\defaults\TestController::class,'test']);
Route::get('/cs2', [\App\Http\Controllers\admin\defaults\TestController::class,'detail_json']);

Route::get('/tool', [\App\Http\Controllers\admin\defaults\ToolController::class,'index']);
Route::post('/tool/make', [\App\Http\Controllers\admin\defaults\ToolController::class,'make']);
Route::post('/tool/dele', [\App\Http\Controllers\admin\defaults\ToolController::class,'dele']);
Route::get('/tool/lookfile', [\App\Http\Controllers\admin\defaults\ToolController::class,'lookfile']);

//@@tool_make_routes_public@@

//后台
Route::prefix('admin')->group(function(){

    Route::get('/', [\App\Http\Controllers\admin\defaults\IndexController::class,'index']);
    Route::get('/login', [\App\Http\Controllers\admin\defaults\LoginController::class,'index']);
    Route::get('/authrule/lists', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'lists']);
    Route::post('/authrule/lists_json', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'lists_json']);

    Route::get('/authrule/edit', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'edit']);
    Route::get('/authrule/detail_json', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'detail_json']);
    Route::post('/authrule/save', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'save']);
    Route::post('/authrule/dele', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'del']);
    Route::get('/authrule/editbutton', [\App\Http\Controllers\admin\defaults\AuthruleController::class,'editbutton']);


    Route::any('/admin/lists', [\App\Http\Controllers\admin\defaults\AdminController::class,'lists']);
    Route::any('/admin/add', [\App\Http\Controllers\admin\defaults\AdminController::class,'add']);
    Route::any('/admin/edit', [\App\Http\Controllers\admin\defaults\AdminController::class,'edit']);
    Route::any('/admin/dele', [\App\Http\Controllers\admin\defaults\AdminController::class,'dele']);



//@adminauthrule--start--- 2021-07-04 07:55:12
 Route::any('/adminauthrule/add', [\App\Http\Controllers\admin\addon\AdminauthruleController::class,'add']);
 Route::any('/adminauthrule/edit', [\App\Http\Controllers\admin\addon\AdminauthruleController::class,'edit']);
 Route::any('/adminauthrule/lists', [\App\Http\Controllers\admin\addon\AdminauthruleController::class,'lists']);
 Route::any('/adminauthrule/dele', [\App\Http\Controllers\admin\addon\AdminauthruleController::class,'dele']);
 Route::any('/adminauthrule/save', [\App\Http\Controllers\admin\addon\AdminauthruleController::class,'save']);
 Route::any('/adminauthrule/info', [\App\Http\Controllers\admin\addon\AdminauthruleController::class,'info']);
//@adminauthrule--end













































































//@article--start--- 2021-07-04 13:17:42
 Route::any('/article/add', [\App\Http\Controllers\admin\addon\ArticleController::class,'add']);
 Route::any('/article/edit', [\App\Http\Controllers\admin\addon\ArticleController::class,'edit']);
 Route::any('/article/lists', [\App\Http\Controllers\admin\addon\ArticleController::class,'lists']);
 Route::any('/article/dele', [\App\Http\Controllers\admin\addon\ArticleController::class,'dele']);
 Route::any('/article/save', [\App\Http\Controllers\admin\addon\ArticleController::class,'save']);
 Route::any('/article/info', [\App\Http\Controllers\admin\addon\ArticleController::class,'info']);
//@article--end
//@@tool_make_routes_admin@@














































});



